﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Trans.car
{
    public partial class Add_cartype : Form
    {
        public Add_cartype()
        {
            InitializeComponent();
        }

        private void Add_cartype_Load(object sender, EventArgs e)
        {
            tbcartypeBindingSource.AddNew();
   
        }

        private void bt_add_Click(object sender, EventArgs e)
        {
            tbcartypeBindingSource.EndEdit();
            tb_cartypeTableAdapter.Update(dataSet.tb_cartype);
            this.Close();
        }

        private void bt_cancel_Click(object sender, EventArgs e)
        {
            tbcartypeBindingSource.EndEdit();
            this.Close();
        }
    }
}
